﻿/*****************************************************************
 * Copyright (C) HAOest All rights reserved.
 * 
 * Author: HADB
 * Create Date: 2013-08-14
 * Usage: Utils工具类
 *
 * RevisionHistory
 * Date         Author              PageDescription
*****************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.ApplicationModel.Resources;

namespace HAOest.QrCodeForWin8.Model
{
    public class Utils
    {
        private static ResourceLoader resourceLoader = null;

        /// <summary>
        /// 获取String值
        /// </summary>
        /// <param name="stringName">String名</param>
        /// <returns>资源中的String值</returns>
        public static string GetStringValue(string stringName)
        {
            if (resourceLoader == null)
            {
                resourceLoader = new ResourceLoader("Resources");
            }
            return resourceLoader.GetString(stringName);
        }
    }
}
